; Support Files
#include support/obj_Login.iss
#include support/obj_Core.iss
;#include support/obj_Drone.iss
;#include settings/Obj_Settings.iss

; Support Variables
variable obj_Login LoginScript
variable obj_Core Core
;variable obj_Drone Drone

; Settings
;variable obj_Settings_Loader SettingsLoader
;variable obj_Settings Settings



function main(string Username, string Password, int CharID)
{  
		Turbo 20
		
		if !${ISXEVE(exists)}
    {
        echo "HN Bot: loading ISXEve"
        ext isxeve
    }
    
    do
    {
    	wait 30
    }
    while !${ISXEVE.IsReady}
    
    LoginScript.Username:Set[${Username}]
    LoginScript.Password:Set[${Password}]
    LoginScript.CharID:Set[${CharID}]

		Echo "${Username}, Welcome to Hess-Neutro Bot"
		Event[OnFrame]:AttachAtom[LoginScript:StatePulse]
		call LoginScript.ProcessState
		
		
		;Neutro's going to rewrite the core
		;call Core.Main
}